import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView
  },
  {
    path: '/demo',
    name: 'demo',
    component: () => import(/* webpackChunkName: "about" */ '../views/teacher/DemoView.vue')
  },
  {
    path: '/employee',
    name: 'employee',
    component: () => import('../views/employee/EmployeeView.vue')
  },
  {
    path: '/carousel',
    name: 'carousel',
    component: () => import('../views/carousel/CarouselView.vue')
  },
  {
    path: '/learnerList',
    name: 'learnerList',
    component: () => import('../views/learnerManagement/learnerList/LearnerList.vue')
  },
  {
    path: '/subject',
    name: 'subject',
    component: () => import('../views/subject/SubjectView.vue')
  },
  {
    path: '/lessonscard',
    name: 'lessonscard',
    component: () => import('../views/lessonscard/Lessonscard.vue')
  },
  {
    path: '/role',
    name: 'role',
    component: () => import('../views/role/RoleView.vue')
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('../views/LoginView.vue')
  }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
